﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyNhaSach.Report;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;

namespace QuanLyNhaSach.Report
{
    public partial class frm_InPhieuNhap : Form
    {
        public frm_InPhieuNhap()
        {
            InitializeComponent();
        }

        public string mahdnhap = "";
        private void frm_InPhieuNhap_Load(object sender, EventArgs e)
        {
            if (mahdnhap != "")
            {
                In_PhieuNhapHang pnh = new In_PhieuNhapHang();
                pnh.SetParameterValue("mahdnh", mahdnhap);
                crystalReportViewer1.ReportSource = pnh;
                crystalReportViewer1.Refresh();
            }
            else
            {
                MessageBox.Show("Không tìm thấy mã phiếu đặt hàng");
            }
        }
    }
}
